<html>
    <head>
        <meta charset="utf-8">
        <title>{{ general.title }} —— 管理后台</title>
        <link rel="shortcut icon" href="{{ url_for("static", filename="images/favicon.ico") }}"/>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/font-awesome/css/font-awesome.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/Ionicons/css/ionicons.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/dist/css/AdminLTE.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/dist/css/skins/skin-blue-light.min.css") }}">
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
        {% block head %}{% endblock %}
    </head>
    <body class="hold-transition skin-blue-light sidebar-mini">
    <div class="wrapper">
        <header class="main-header">
            <a href="{{ url_for("fronted.index") }}" class="logo">
                <span class="logo-mini">{{ global.abb_name }}</span>
                <span class="logo-lg">{{ global.name }}</span>
            </a>
            <nav class="navbar navbar-static-top" role="navigation">
                <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>
            </nav>
        </header>
        <aside class="main-sidebar">
            <section class="sidebar">
                <ul class="sidebar-menu" data-widget="tree">
                    <li><a href="{{ url_for("admin.index") }}"><i class="fa fa-dashboard"></i> <span>概览</span></a></li>
                    <li class="treeview">
                        <a href="#"><i class="fa fa-book"></i> <span>题目管理</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="{{ url_for("admin.problem_search") }}">题目编辑</a></li>
                            <li><a href="{{ url_for("admin.problem_new") }}">新建题目</a></li>
                            <li><a href="{{ url_for("admin.problem_upload") }}">数据上传</a></li>
                        </ul>
                    </li>
                    <li><a href="{{ url_for("admin.notice_edit") }}"><i class="fa fa-newspaper-o"></i><span>公告板编辑</span></a></li>
                    <li class="treeview">
                        <a href="#"><i class="fa fa-comments-o"></i> <span>讨论管理</span>
                            <span class="pull-right-container">
                                <i class="fa fa-angle-left pull-right"></i>
                            </span>
                        </a>
                        <ul class="treeview-menu">
                            <li><a href="{{ url_for("admin.board_edit") }}">讨论版编辑</a></li>
                            <li><a href="{{ url_for("admin.board_new") }}">新建讨论版</a></li>
                        </ul>
                    </li>
                    <li><a href="{{ url_for("admin.setting") }}"><i class="fa fa-gears"></i><span>设置</span></a></li>
                </ul>
            </section>
        </aside>
        <div class="content-wrapper" style="background-color: #f8f8f8;">
            <section class="content-header">
                <h1>
                    {{ general.title }}
                    <small>{{ general.subtitle }}</small>
                </h1>
            </section>
            <section class="content container-fluid">
                {% block main %}
                {% endblock %}
            </section>
        </div>
        <footer class="main-footer">
            <div class="pull-right hidden-xs">
                Template <a href="https://github.com/almasaeed2010/AdminLTE">AdminLTE</a>
            </div>
            Powered by <a href="https://gitee.com/zhuqinggang/JudgeChickenWeb">JudgeChicken</a>
        </footer>
    </div>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/jquery/dist/jquery.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/dist/js/adminlte.min.js") }}"></script>
    </body>
</html>